[Feature](Compaction) Add compaction profile manager with HTTP API for historical tracking#61374
Open
Yukang-Lian wants to merge 3 commits intoapache:masterfrom
Open
[Feature](Compaction) Add compaction profile manager with HTTP API for historical tracking#61374Yukang-Lian wants to merge 3 commits intoapache:masterfrom
Yukang-Lian wants to merge 3 commits intoapache:masterfrom
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
4de134e to
51666cf
Compare
Collaborator
Author
|
run buildall |
TPC-H: Total hot run time: 26805 ms |
TPC-DS: Total hot run time: 167771 ms |
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Currently, compaction execution metrics (input/output data sizes, row counts, merge latency, etc.) are lost once the compaction object is destructed. Operators have no way to inspect
historical compaction performance through the web interface — only the current running status is available.
This PR introduces a compaction profile history feature that allows operators to query detailed execution metrics of recent compactions via
GET /api/compaction/profile, enablingperformance diagnosis and bottleneck identification without parsing BE logs.
Example —
GET /api/compaction/profile?tablet_id=12345&top_n=1:{ "status": "Success", "compaction_profiles": [ { "compaction_id": 487, "compaction_type": "cumulative", "tablet_id": 12345, "start_time": "2025-07-15 14:02:31", "end_time": "2025-07-15 14:02:31", "cost_time_ms": 236, "success": true, "input_rowsets_data_size": 10706329, "input_rowsets_count": 5, "input_row_num": 52000, "input_segments_num": 5, "input_rowsets_index_size": 204800, "input_rowsets_total_size": 10911129, "merged_rows": 1200, "filtered_rows": 50, "output_rows": 50750, "output_rowset_data_size": 5033164, "output_row_num": 50750, "output_segments_num": 1, "output_rowset_index_size": 102400, "output_rowset_total_size": 5135564, "merge_rowsets_latency_ms": 180, "bytes_read_from_local": 10911129, "bytes_read_from_remote": 0, "output_version": "[12-16]" } ] }Features:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)